﻿using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZhaoXi.MSACommerce.Consul.ServiceDiscovery
{
    public static class ConsulServiceDiscoveryExtension
    {
        public static IServiceCollection AddConsulDiscovery(this IServiceCollection services)
        {
            {
                services.AddSingleton<IServiceDiscovery, ConsulServiceDiscovery>();

                return services;
            }

        }
    }
}
